from django.urls import path,include
from .views import index,blog_detail,pub_blog,bloglogin,register,send_verification_email,logout_view,pub_comment,search

app_name = 'app1'

urlpatterns = [
    path('index/', index, name = 'index'),
    path('detail/<int:blog_id>', blog_detail, name = 'blog_detail'),
    path('pub/', pub_blog, name = 'pub_blog'),
    path('login/', bloglogin, name = 'bloglogin'),
    path('logout/', logout_view, name = 'logout_view'),
    path('register/', register, name = 'register'),
    path('email_code/', send_verification_email, name = 'send_verification_email'),
    path('comment_pub/', pub_comment, name = 'pub_comment'),
    path('search/', search, name = 'search')
]